package slap.exception;

import java.util.Arrays;
import java.util.List;

import slap.template.Template;

/**
 * A template is missing (tag, ...)
 */
public class TemplateNotFoundException extends SlapException {

    private String path;
    private String sourceFile;

    public TemplateNotFoundException(String path) {
        super("Template not found : " + path);
        this.path = path;
    }
    
    public String getPath() {
        return path;
    }

    @Override
    public String getErrorTitle() {
        return String.format("Template not found");
    }

    @Override
    public String getErrorDescription() {
        return String.format("The template <strong>%s</strong> does not exist.", path);
    }

    public String getSourceFile() {
        return sourceFile;
    }

}